package com.zwq.poker.controller;

import com.zwq.poker.CardTypeEnum;
import com.zwq.poker.dto.CardDTO;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @BelongsProject: cloud-shop
 * @BelongsPackage: com.zwq.poker.controller
 * @Author: zwq
 * @CreateTime: 2025-04-25  20:11
 * @Description: TODO
 * @Version: 1.0
 */
@Tag(name = "卡片controller")
@RestController
@RequestMapping("/card")
public class CardController {

    @Parameter(name = "number", description = "份")
    public String dealCards(int number) {
        initCard();
        return null;
    }

    private static void initCard() {

    }

    public static void main(String[] args) {
        CardDTO cardDTO = CardDTO.of();
        cardDTO.init();
        cardDTO.shuffle();
        List<CardDTO.Card> cards = cardDTO.getCards();

        List<List<CardDTO.Card>> lists = cardDTO.dealCard();
        lists.forEach(System.out::println);

    }
}
